Skip to content

[#750] Writer Stats: rename to Donations Received + add Royalties Claimed#753

Merged
realproject7 merged 1 commit intomainfrom
task/750-writer-stats-labels
Apr 2, 2026
Merged

[#750] Writer Stats: rename to Donations Received + add Royalties Claimed#753
realproject7 merged 1 commit intomainfrom
task/750-writer-stats-labels

Conversation

@realproject7
Copy link
Copy Markdown
Owner

Summary

  • Rename "Received" → "Donations Received" in Writer Stats
  • Add "Royalties Claimed" row using existing claimedRoyalties data from profile page (on-chain getRoyaltyInfo)
  • Only shows Royalties Claimed row when amount > 0
  • Passes claimedRoyalties from parent ProfilePage to StoriesTab

Fixes #750

Test plan

  • Writer Stats: label reads "Donations Received" (not just "Received")
  • Writer Stats: "Royalties Claimed" row shows when royalties > 0
  • Writer Stats: "Royalties Claimed" row hidden when no royalties
  • Both rows show RESERVE_LABEL amount + USD value
  • Verify at 375px mobile viewport
  • npm run build passes

🤖 Generated with Claude Code

…Claimed'

1. Rename "Received" label to "Donations Received" in Writer Stats
2. Add "Royalties Claimed" row using existing claimedRoyalties data
   from the profile page (on-chain getRoyaltyInfo)
3. Only shows Royalties Claimed when amount > 0

Fixes #750

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@vercel
Copy link
Copy Markdown

vercel Bot commented Apr 2, 2026

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
plotlink Ignored Ignored Apr 2, 2026 11:07am

Request Review

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

T2b APPROVE

Clean, minimal change. Label rename is clear, royalties row follows the exact same pattern as Donations Received (styling, conditional rendering, USD conversion).

Minor note (pre-existing, not blocking): formatUnits(..., 18) hardcodes decimals — applies to the existing totalDonations line too, not just this PR.

LGTM.

Copy link
Copy Markdown
Collaborator

@project7-interns project7-interns left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Verdict: APPROVE

Summary

This PR cleanly renames the Writer Stats label to "Donations Received" and adds a "Royalties Claimed" row using the existing profile-level claimedRoyalties data, which matches issue #750 with a minimal one-file change.

Findings

  • None.

Decision

Approving because the change stays within the ticket scope, follows the existing Writer Stats pattern, and the current checks are passing.

@realproject7 realproject7 merged commit 41ebf1c into main Apr 2, 2026
5 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Writer Stats: rename to 'Donations Received' + add 'Royalties Claimed' row

2 participants